﻿@model IEnumerable<GameStore2.Models.Game>
@{
    ViewBag.Title = "Index";
}

<h2>Search Result</h2>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.GameUrl)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Company.Name)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.GameUrl)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Company.Name)
        </td>
    </tr>
}

</table>
